public class ClubStatSystem {
}
public class ClubStatSystem {
    public static void main(String[] args) {
        // 1. 定义数组存储社团数据
        String[] clubNames = {"编程社", "动漫社", "志愿者社", "音乐社", "篮球社"};
        int[] totalCounts = {25, 32, 18, 28, 35};
        int[] newStudentCounts = {18, 25, 15, 20, 28};

        // 2. 初始化“人数最多的社团”相关变量
        String maxCountClub = "";
        int maxCount = 0;

        // 3. 循环遍历，统计并输出
        System.out.println("校园社团纳新统计结果：");
        System.out.println("-----------------------------");
        for (int i = 0; i < clubNames.length; i++) {
            // 计算新生占比
            double newRatio = (double) newStudentCounts[i] / totalCounts[i] * 100;
            // 保留1位小数
            newRatio = Math.round(newRatio * 10) / 10.0;

            // 输出当前社团信息
            System.out.println("社团名称：" + clubNames[i]);
            System.out.println("报名总人数：" + totalCounts[i] + "人");
            System.out.println("新生人数：" + newStudentCounts[i] + "人");
            System.out.println("新生占比：" + newRatio + "%");
            System.out.println("-----------------------------");

            // 判断是否为人数最多的社团
            if (totalCounts[i] > maxCount) {
                maxCount = totalCounts[i];
                maxCountClub = clubNames[i];
            }
        }

        // 4. 输出人数最多的社团
        System.out.println("报名人数最多的社团：" + maxCountClub + "（" + maxCount + "人）");
    }
}